import { _ as _export_sfc, c as createBlock, o as openBlock, w as withCtx, r as renderSlot, e as createCommentVNode, p as index$q, n as normalizeStyle, f as normalizeClass, i as index$g } from './index-Cc4oxzDN.js';

const _imports_0 = "/h5/static/images/navigator-1.png";

const _sfc_main = {
  __name: 'list-cell',
  props: {
	 //是否有箭头
	 arrow: {
	 	type: Boolean,
	 	default: false
	 },
	 //是否有点击效果
	 hover: {
	 	type: Boolean,
	 	default: true
	 },
	 //left 30rpx
	 lineLeft:{
	 	type: Boolean,
	 	default: false
	 },
	 //right 30rpx
	 lineRight:{
	 	type: Boolean,
	 	default: false
	 },
	 padding:{
	 	type:String,
	 	default:"26rpx 30rpx"
	 },
	 last: {
	 	type: Boolean,
	 	default: false //最后一条数据隐藏线条
	 },
	 radius:{
	 	type:Boolean,
	 	default:false
	 },
	 bgcolor: {
	 	type: String,
	 	default: "#fff" //背景颜色
	 },
	 size: {
	 	type: Number,
	 	default: 28 //字体大小
	 },
	 color: {
	 	type: String,
	 	default: "#5A5B5C" //字体颜色
	 },
	 index: {
	 	type: Number,
	 	default: 0
	 }
},
  emits: ['click'],
  setup(__props, { emit: __emit }) {

const props = __props;
const emit = __emit;
const handleClick = () => {
	emit('click', {
		index: props.index
	});
};


return (_ctx, _cache) => {
  const _component_v_uni_image = index$q;
  const _component_v_uni_view = index$g;

  return (openBlock(), createBlock(_component_v_uni_view, {
    class: normalizeClass(["tui-cell-class tui-list-cell", { 'tui-cell-arrow': __props.arrow, 'tui-cell-last': __props.last, 'tui-line-left': __props.lineLeft, 'tui-line-right': __props.lineRight, 'tui-radius': __props.radius }]),
    "hover-class": __props.hover ? 'tui-cell-hover' : '',
    style: normalizeStyle({ background: __props.bgcolor, fontSize: __props.size + 'rpx', color: __props.color, padding: __props.padding}),
    "hover-stay-time": 150,
    onClick: handleClick
  }, {
    default: withCtx(() => [
      renderSlot(_ctx.$slots, "default", {}, undefined, true),
      (__props.arrow)
        ? (openBlock(), createBlock(_component_v_uni_image, {
            key: 0,
            src: _imports_0,
            class: "arrow"
          }))
        : createCommentVNode("", true)
    ]),
    _: 3
  }, 8, ["class", "hover-class", "style"]))
}
}

};
const __easycom_2 = /*#__PURE__*/_export_sfc(_sfc_main, [['__scopeId',"data-v-a4b8af69"]]);

export { __easycom_2 as _, _imports_0 as a };
